﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="NtpChat.Client.LoginView"
	x:Name="UserControl"
	UseLayoutRounding="True" Height="50">


	<Grid x:Name="LayoutRoot">
		<Border BorderBrush="#FF7E7A7A" BorderThickness="1" Margin="0" CornerRadius="3" MinWidth="284" Height="50">
			<Border.Effect>
				<DropShadowEffect Opacity="0.6" Direction="269" ShadowDepth="2"/>
			</Border.Effect>
			<Border.Background>
				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
					<LinearGradientBrush.RelativeTransform>
						<TransformGroup>
							<ScaleTransform CenterY="0.5" CenterX="0.5"/>
							<SkewTransform CenterY="0.5" CenterX="0.5"/>
							<RotateTransform CenterY="0.5" CenterX="0.5"/>
							<TranslateTransform/>
						</TransformGroup>
					</LinearGradientBrush.RelativeTransform>
					<GradientStop Color="#FFB4B4B4" Offset="0"/>
					<GradientStop Color="#FFEDEDED" Offset="1"/>
				</LinearGradientBrush>
			</Border.Background>
			<StackPanel HorizontalAlignment="Center" Orientation="Horizontal" VerticalAlignment="Center" Margin="-20,0,0,0" Height="25">
				<TextBox TextWrapping="Wrap" Text="{Binding UserName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Width="100" Margin="0,0,15,0">
					<TextBox.InputBindings>
						<KeyBinding Key="Return" Command="{Binding CheckLoginCommand}" CommandParameter="{Binding UserName}"/>
					</TextBox.InputBindings>
				</TextBox>
				<Button Content="Login" Command="{Binding CheckLoginCommand}"/>
			</StackPanel>
		</Border>
	</Grid>
</UserControl>